package com.dinglian.ots.vo.brand;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wangbo
 */
@Data
public class BrandRuleVo {

    @NotNull(message = "品牌ID不能为空")
    private Integer brandId;

    @NotNull(message = "订货规则不能为空")
    @Range(max = 2,min = 1,message = "订货规则有误")
    private Integer orderRule;

    private String moq;

    @NotNull(message = "阶梯优惠不能为空")
    @Range(max = 2,min = 1,message = "阶梯优惠有误")
    private Integer saleMethod;

    @NotBlank(message = "达标量不能为空")
    private String standardAmount;

    @NotBlank(message = "优惠量不能为空")
    private String preferentialAmount;

    private String standardAmount1;

}
